import React from 'react'
import './App.css'
import Navbar from "./pages/navbar/Navbar"
import routes from './routes'


// 引入包管理工具
import { renderRoutes, RouteConfig } from "react-router-config"

function App() {
  return (
    <div className="App">
      <div className='app-wrapper'>
        <Navbar></Navbar>
        <div className='app-content'>
          {renderRoutes(routes as RouteConfig[])}
        </div>
      </div>
    </div>
  )
}

export default App
